<!--<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'DrawPageDemo',
})
</script>-->
<script lang="ts" setup>
import Taro from '@tarojs/taro'

Taro.navigateTo({
  url: '/pages/demo/DrawPage/DrawPage',
  events: {
    // 接收子页面的传值
    confirm: function (imgPath) {
      console.log('🚀 -- imgPath', imgPath)
    },
  },
  success: function (_res) {
    // 向子页面传值
    // res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test3' })
  },
})
</script>
<template>
  <div> DrawPageDemo </div>

  <a href="/pages/demo/DrawPage/DrawPage">去画图</a>
  <button></button>
</template>

<style lang="scss">
page {
  padding: 10px;
}

.h5-a {
  color: #1890ff;
}
</style>
